SlkSettings.ParseSettingsFile Method

Parses an SLK Settings XML file, i.e. an XML file with schema "urn:schemas-microsoft-com:sharepoint-learning-kit:settings". Returns a new SlkSettings object containing information from the parsed file.

Parent Type: SlkSettings

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public static SlkSettings ParseSettingsFile (
XmlReader xmlReader,
DateTime whenUploaded

)

Parameters

xmlReader

An XmlReader positioned at the beginning of the SLK Settings XML file. This XmlReader must have "SlkSettings.xsd" (the SLK Setttings XML schema) attached using the XmlReaderSettings parameter of the XmlReader constructor, with XmlReaderSettings.ValidationType equal to ValidationType.Schema.

whenUploaded

The date/time that the SLK Settings XML file was uploaded to the database.

Exceptions
Exception type Condition
SlkSettingsException

The SLK Settings XML file is invalid. The exception message includes the line number and other information about the error.